<%@ Page Language="vb" EnableEventValidation="false" AutoEventWireup="false" CodeFile="EditProductsPage.aspx.vb" Culture="en-US" Inherits="Training1.UI.EditProductsPage" %>
<%@ Register Tagprefix="Training1" TagName="Header" Src="../Header and Footer/Header.ascx" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<%@ Register Tagprefix="Training1" TagName="ThemeButton" Src="../Shared/ThemeButton.ascx" %>

<%@ Register Tagprefix="BaseClasses" Namespace="BaseClasses.Web.UI.WebControls" Assembly="BaseClasses" %>
<%@ Register Tagprefix="Training1" Namespace="Training1.UI.Controls.EditProductsPage" %>

<%@ Register Tagprefix="Training1" TagName="Menu" Src="../Menu Panels/Menu.ascx" %>

<%@ Register Tagprefix="Selectors" Namespace="Training1" %>

<%@ Register Tagprefix="Training1" TagName="Footer" Src="../Header and Footer/Footer.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    <title><asp:Literal runat="server" id="PageTitle" Text="&lt;%#String.Concat(GetResourceValue(&quot;Title:Edit&quot;, &quot;Training1&quot;),&quot; Products&quot;) %>">
</asp:Literal></title>
    <link rel="stylesheet" rev="stylesheet" type="text/css" href="../Styles/BaseStyles.css"/>
    <link rel="stylesheet" rev="stylesheet" type="text/css" href="../Styles/Styles.css"/>
    </head>
    <body id="Body1" runat="server" class="pBack">
    <form id="Form1" method="post" runat="server"><BaseClasses:ScrollCoordinates id="ScrollCoordinates" runat="server"></BaseClasses:ScrollCoordinates>
        <BaseClasses:BasePageSettings id="PageSettings" runat="server"></BaseClasses:BasePageSettings>
        <script language="JavaScript" type="text/javascript">clearRTL()</script>
		<asp:ScriptManager ID="scriptManager1" runat="server" EnablePartialRendering="True" EnablePageMethods="True" EnableScriptGlobalization="True" EnableScriptLocalization="True" />
		
        <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
        <tr>
        <td class="pAlign">
        <table cellspacing="0" cellpadding="0" border="0" class="pbTable">
            <tr>
            <td class="pbTL"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbT"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbTR"><img src="../Images/space.gif" alt=""/></td>
            </tr>
            <tr>
            <td class="pbL"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbC">
            <table cellspacing="0" cellpadding="0" border="0" class="pcTable">
            <tr>
                <td class="pcT" colspan="2">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                <tr>
                <td>
                </td>
            </tr>
            </table>
            <table cellspacing="0" cellpadding="0" border="0" width="100%">
            <tr>
            <td><Training1:Header runat="server" id="PageHeader">
		</Training1:Header></td>
            </tr>
            </table>
            </td>
            <td class="pcTR"></td>
            </tr>
            <tr>
                <td class="pcL">
                    </td>
                <td class="pcC">
                <table cellspacing="0" cellpadding="0" border="0" width="100%" height="100%">
                <tr>
                <td>
                    <Training1:Menu runat="server" id="Menu" HiliteSettings="ProductsMenuItem">
		</Training1:Menu></td>
                </tr>
                <tr>
                    <td>
                        <table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <tr>
                        <td class="pContent">
                            <a name="StartOfPageContent"></a>
<asp:UpdateProgress runat="server" id="ProductsRecordControlUpdateProgress" AssociatedUpdatePanelID="ProductsRecordControlUpdatePanel">
										<ProgressTemplate>
											<div style="position:absolute;   width:100%;height:1000px;background-color:#000000;filter:alpha(opacity=10);opacity:0.20;-moz-opacity:0.20;padding:20px;">
											</div>
											<div style=" position:absolute; padding:30px;">
												<img src="../Images/updating.gif" alt="">
											</div>
										</ProgressTemplate>
									</asp:UpdateProgress>
									<asp:UpdatePanel runat="server" id="ProductsRecordControlUpdatePanel" UpdateMode="Conditional">

										<ContentTemplate>
											<Training1:ProductsRecordControl runat="server" id="ProductsRecordControl">
														
<!-- Begin Record Panel.html -->

 <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("SaveButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("CancelButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("OKButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("SaveNNewButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureBeginTag(FindControl("EditButton$_Button")) %>

    <table class="dv" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="dh">
    <table cellpadding="0" cellspacing="0" width="100%" border="0">
    <tr>
    <td class="dhel"><img src="../Images/space.gif" alt=""/></td>
    <td class="dheci" valign="middle"><a onclick="toggleExpandCollapse(this);"><img id="ExpandCollapseIcon" src="../Images/DialogHeaderIconCollapse.gif" border="0" alt="Collapse panel"/></a></td><td class="dhb">
    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="dhtr" valign="middle"><asp:Literal runat="server" id="ProductsTitle" Text="Edit Products">
														</asp:Literal></td>
    </tr>
    </table>
    </td>
    <td class="dher"><img src="../Images/space.gif" alt=""/></td>
    </tr>
    </table>
    </td>
    </tr><tr>
        <td>
        <table class="dBody" id="CollapsibleRegion" style="display:;" cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
        <td>
        <table id="FilterRegion" cellpadding="0" cellspacing="3" border="0"></table>
    <div class="spacer"></div></td>
    </tr>
    <tr><td>
    <table cellpadding="0" cellspacing="3" border="0">
            <tr>
            <td class="fls"><asp:Literal runat="server" id="ProductNameLabel" Text="Product Name">
														</asp:Literal></td>
            <td class="dfv"><asp:TextBox runat="server" id="ProductName" Columns="40" MaxLength="40" CssClass="field_input">
														</asp:TextBox>&nbsp;
														<asp:RequiredFieldValidator runat="server" id="ProductNameRequiredFieldValidator" ControlToValidate="ProductName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueIsRequired&quot;, &quot;Training1&quot;).Replace(&quot;{FieldName}&quot;, &quot;Product Name&quot;) %>" Enabled="True" Text="*">														</asp:RequiredFieldValidator>&nbsp;
														<BaseClasses:TextBoxMaxLengthValidator runat="server" id="ProductNameTextBoxMaxLengthValidator" ControlToValidate="ProductName" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Training1&quot;).Replace(&quot;{FieldName}&quot;, &quot;Product Name&quot;) %>">														</BaseClasses:TextBoxMaxLengthValidator></td>
            </tr>
            <tr>
            <td class="fls"><asp:Literal runat="server" id="SupplierIDLabel" Text="Supplier">
														</asp:Literal></td>
            <td class="dfv"><asp:DropDownList runat="server" id="SupplierID" CssClass="field_input" onkeypress="dropDownListTypeAhead(this,false)">
														</asp:DropDownList>
														<Selectors:FvLlsHyperLink runat="server" id="SupplierIDFvLlsHyperLink" ControlToUpdate="SupplierID" Text="&lt;%# GetResourceValue(&quot;LLS:Text&quot;, &quot;Training1&quot;) %>" MinListItems="100" Table="Suppliers" Field="Suppliers_.SupplierID" DisplayField="Suppliers_.CompanyName">														</Selectors:FvLlsHyperLink></td>
            </tr>
            <tr>
            <td class="fls"><asp:Literal runat="server" id="CategoryIDLabel" Text="Category">
														</asp:Literal></td>
            <td class="dfv"><asp:DropDownList runat="server" id="CategoryID" CssClass="field_input" onkeypress="dropDownListTypeAhead(this,false)">
														</asp:DropDownList>
														<Selectors:FvLlsHyperLink runat="server" id="CategoryIDFvLlsHyperLink" ControlToUpdate="CategoryID" Text="&lt;%# GetResourceValue(&quot;LLS:Text&quot;, &quot;Training1&quot;) %>" MinListItems="100" Table="Categories" Field="Categories_.CategoryID" DisplayField="Categories_.CategoryName">														</Selectors:FvLlsHyperLink></td>
            </tr>
            <tr>
            <td class="fls"><asp:Literal runat="server" id="QuantityPerUnitLabel" Text="Quantity Per Unit">
														</asp:Literal></td>
            <td class="dfv"><asp:TextBox runat="server" id="QuantityPerUnit" Columns="20" MaxLength="20" CssClass="field_input">
														</asp:TextBox>&nbsp;
														<BaseClasses:TextBoxMaxLengthValidator runat="server" id="QuantityPerUnitTextBoxMaxLengthValidator" ControlToValidate="QuantityPerUnit" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Training1&quot;).Replace(&quot;{FieldName}&quot;, &quot;Quantity Per Unit&quot;) %>">														</BaseClasses:TextBoxMaxLengthValidator></td>
            </tr>
            <tr>
            <td class="fls"><asp:Literal runat="server" id="UnitPriceLabel" Text="Unit Price">
														</asp:Literal></td>
            <td class="dfv"><table border="0" cellpadding="0" cellspacing="0">
														<tr>
														<td style="padding-right: 5px; vertical-align:top">
														<asp:TextBox runat="server" id="UnitPrice" Columns="20" MaxLength="20" onkeyup="adjustCurrency(this, event.keyCode,'$', '.', 'False');" CssClass="field_input">
														</asp:TextBox></td>
														<td style="padding-right: 5px; white-space:nowrap;">
														<%# SystemUtils.GenerateIncrementDecrementButtons(true, Container.FindControl("UnitPrice"),"CurrencyTextBox","$",".","False") %>
														</td>
														<td style="padding-right: 5px">
														&nbsp;
														<BaseClasses:TextBoxMaxLengthValidator runat="server" id="UnitPriceTextBoxMaxLengthValidator" ControlToValidate="UnitPrice" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Training1&quot;).Replace(&quot;{FieldName}&quot;, &quot;Unit Price&quot;) %>">														</BaseClasses:TextBoxMaxLengthValidator></td>
														</tr>
														</table>
														</td>
            </tr>
            <tr>
            <td class="fls"><asp:Literal runat="server" id="UnitsInStockLabel" Text="Units In Stock">
														</asp:Literal></td>
            <td class="dfv"><table border="0" cellpadding="0" cellspacing="0">
														<tr>
														<td style="padding-right: 5px; vertical-align:top">
														<asp:TextBox runat="server" id="UnitsInStock" Columns="7" MaxLength="7" onkeyup="adjustInteger(this, event.keyCode)" CssClass="field_input">
														</asp:TextBox></td>
														<td style="padding-right: 5px; white-space:nowrap;">
														<%# SystemUtils.GenerateIncrementDecrementButtons(true, Container.FindControl("UnitsInStock"),"NumberTextBox","","","") %>
														</td>
														<td style="padding-right: 5px">
														&nbsp;
														<BaseClasses:TextBoxMaxLengthValidator runat="server" id="UnitsInStockTextBoxMaxLengthValidator" ControlToValidate="UnitsInStock" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Training1&quot;).Replace(&quot;{FieldName}&quot;, &quot;Units In Stock&quot;) %>">														</BaseClasses:TextBoxMaxLengthValidator></td>
														</tr>
														</table>
														</td>
            </tr>
            <tr>
            <td class="fls"><asp:Literal runat="server" id="UnitsOnOrderLabel" Text="Units On Order">
														</asp:Literal></td>
            <td class="dfv"><table border="0" cellpadding="0" cellspacing="0">
														<tr>
														<td style="padding-right: 5px; vertical-align:top">
														<asp:TextBox runat="server" id="UnitsOnOrder" Columns="7" MaxLength="7" onkeyup="adjustInteger(this, event.keyCode)" CssClass="field_input">
														</asp:TextBox></td>
														<td style="padding-right: 5px; white-space:nowrap;">
														<%# SystemUtils.GenerateIncrementDecrementButtons(true, Container.FindControl("UnitsOnOrder"),"NumberTextBox","","","") %>
														</td>
														<td style="padding-right: 5px">
														&nbsp;
														<BaseClasses:TextBoxMaxLengthValidator runat="server" id="UnitsOnOrderTextBoxMaxLengthValidator" ControlToValidate="UnitsOnOrder" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Training1&quot;).Replace(&quot;{FieldName}&quot;, &quot;Units On Order&quot;) %>">														</BaseClasses:TextBoxMaxLengthValidator></td>
														</tr>
														</table>
														</td>
            </tr>
            <tr>
            <td class="fls"><asp:Literal runat="server" id="ReorderLevelLabel" Text="Reorder Level">
														</asp:Literal></td>
            <td class="dfv"><table border="0" cellpadding="0" cellspacing="0">
														<tr>
														<td style="padding-right: 5px; vertical-align:top">
														<asp:TextBox runat="server" id="ReorderLevel" Columns="7" MaxLength="7" onkeyup="adjustInteger(this, event.keyCode)" CssClass="field_input">
														</asp:TextBox></td>
														<td style="padding-right: 5px; white-space:nowrap;">
														<%# SystemUtils.GenerateIncrementDecrementButtons(true, Container.FindControl("ReorderLevel"),"NumberTextBox","","","") %>
														</td>
														<td style="padding-right: 5px">
														&nbsp;
														<BaseClasses:TextBoxMaxLengthValidator runat="server" id="ReorderLevelTextBoxMaxLengthValidator" ControlToValidate="ReorderLevel" ErrorMessage="&lt;%# GetResourceValue(&quot;Val:ValueTooLong&quot;, &quot;Training1&quot;).Replace(&quot;{FieldName}&quot;, &quot;Reorder Level&quot;) %>">														</BaseClasses:TextBoxMaxLengthValidator></td>
														</tr>
														</table>
														</td>
            </tr>
            <tr>
            <td class="fls"><asp:Literal runat="server" id="DiscontinuedLabel" Text="Discontinued">
														</asp:Literal></td>
            <td class="dfv"><asp:CheckBox runat="server" id="Discontinued" CheckedValue="Yes" TreatOtherValuesAsChecked="True" UncheckedValue="No">
														</asp:CheckBox></td>
            </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
<%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("OKButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("CancelButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("SaveButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("SaveNNewButton$_Button")) %>
 <%= SystemUtils.GenerateEnterKeyCaptureEndTag(FindControl("EditButton$_Button")) %>
 <!-- End Record Panel.html -->
 
											</Training1:ProductsRecordControl>
											</ContentTemplate>
										</asp:UpdatePanel>
									
                                    
                                    <table cellpadding="0" cellspacing="0" border="0" id="Table1">
                                        <tr>
                                        <td class="recordPanelButtonsAlignment">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                        <td></td>
                                        <td><img src="../Images/space.gif" height="6" width="3" alt=""/></td>
                                        <td></td>
                                        <td><img src="../Images/space.gif" height="6" width="3" alt=""/></td>
                                        <td><Training1:ThemeButton runat="server" id="SaveButton" Button-CausesValidation="true" Button-CommandName="UpdateData" Button-RedirectURL="Back" Button-Text="&lt;%# GetResourceValue(&quot;Btn:Save&quot;, &quot;Training1&quot;) %>" PostBack="True">
										</Training1:ThemeButton></td>
                                        <td><img src="../Images/space.gif" height="6" width="3" alt=""/></td>
                                        <td></td>
                                        <td><img src="../Images/space.gif" height="6" width="3" alt=""/></td>
                                        <td><Training1:ThemeButton runat="server" id="CancelButton" Button-CausesValidation="false" Button-CommandName="Redirect" Button-RedirectURL="Back" Button-Text="&lt;%# GetResourceValue(&quot;Btn:Cancel&quot;, &quot;Training1&quot;) %>">
										</Training1:ThemeButton></td>
                                        <td><img src="../Images/space.gif" height="6" width="3" alt=""/></td>
                                        </tr>
                                        </table>
                                        </td>
                                        </tr>
                                    </table>
                                    <div id="detailPopup" class="detailRolloverPopup" onmouseout="detailRolloverPopupClose();" onmouseover="clearTimeout(gPopupTimer);"></div>
                        </td>
                        </tr>
                        </table>
                    </td>
                </tr>
                </table>
                </td>
                <td class="pcR"></td>
            </tr>
            <tr>
                <td class="pcBL"></td>
                <td class="pcB">
                <Training1:Footer runat="server" id="PageFooter">
									</Training1:Footer></td>
                <td class="pcBR"></td>
            </tr>
            </table>
            </td>
            <td class="pbR"><img src="../Images/space.gif" alt=""/></td>
            </tr>
            <tr>
            <td class="pbBL"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbB"><img src="../Images/space.gif" alt=""/></td>
            <td class="pbBR"><img src="../Images/space.gif" alt=""/></td>
        </tr>
        </table>
        </td>
        </tr>
        </table>
        <asp:ValidationSummary id="ValidationSummary1" ShowMessageBox="true" ShowSummary="false" runat="server"></asp:ValidationSummary></form>
    </body>
</html>
